﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Model
{
   public class cx
    {
        public string name { get; set; }
        public string guan { get; set; }
        [Required(ErrorMessage = "登记开始时间不能为空")]
        [RegularExpression(@"((?:19|20)\d\d)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])", ErrorMessage = "请输入正确的时间")]
        public string qi { get; set; }
        [Required(ErrorMessage = "登记截止时间不能为空")]
        [RegularExpression(@"((?:19|20)\d\d)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])", ErrorMessage = "请输入正确的时间")]
        public string si { get; set; }
    }
}
